﻿using System.Collections.Generic;
using System.Linq;

namespace Project5188.BUS
{
    public static class Resources
    {
        private static project5188Entities _context;

        public static Dictionary<string, resource> GetResourceByPageName(string pageName)
        {
            _context = new project5188Entities();
            return _context.resources.Where(a => a.PageName == pageName).ToDictionary(a => a.Key);
        }
    }
}
